package com.seckill.Model.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 不鄢
 */
@Data
@TableName("order_info")
public class OrderInfo {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Long id;

    /**
     * delivery_addr_id
     */
    private Long deliveryAddrId;

    /**
     * goods_name
     */
    private String goodsName;

    /**
     * goods_count
     */
    private Integer goodsCount;

    /**
     * goods_price
     */
    private BigDecimal goodsPrice;

    /**
     * 订单渠道，1在线，2android，3ios
     */
    private int orderChannel;

    /**
     * 订单状态，0新建未支付，1已支付，2已发货，3已收货，4已退款，5已完成
     */
    private int status;

    /**
     * create_date
     */
    private Date createDate;

    /**
     * pay_date
     */
    private Date payDate;

    public OrderInfo() {}
}
